var str1 = "helloworld";
var str2 = str1;
// let str2: number = <number>str1;报错
var str3 = str1;
console.log(str2);
// 变量作用域
var global = "global";
var Def = /** @class */ (function () {
    function Def() {
        this.lacl = 100;
    }
    Def.prototype.getNum = function () {
        var funLocal = 200;
        return funLocal;
    };
    Def.sta = "staticStr";
    return Def;
}());
console.log("全局变量" + global);
console.log("静态变量" + Def.sta);
var obj = new Def();
console.log("实例变量" + obj.lacl);
console.log("实例方法返回变量" + obj.getNum());
